Specifications and Quick glimpse of data
To get an overview of the structure and contents of the dataset.
library(dplyr)
## Warning: package 'dplyr' was built under R version 4.2.3
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
spec(data)
## cols(
## Age = col_double(),
## Gender = col_double(),
## BMI = col_double(),
## SBP = col_double(),
## DBP = col_double(),
## FPG = col_double(),
## Chol = col_double(),
## Tri = col_double(),
## HDL = col_double(),
## LDL = col_double(),
## ALT = col_double(),
## BUN = col_double(),
## CCR = col_double(),
## FFPG = col_double(),
## smoking = col_double(),
## drinking = col_double(),
## family_histroy = col_double(),
## Diabetes = col_double()
## )
glimpse(data)
## Rows: 4,303
## Columns: 18
## $ Age <dbl> 26, 40, 40, 43, 36, 46, 52, 33, 42, 37, 51, 38, 50, 53,…
## $ Gender <dbl> 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 2…
## $ BMI <dbl> 20.10, 17.70, 19.70, 23.10, 26.50, 20.50, 31.70, 22.90,…
## $ SBP <dbl> 119, 97, 85, 111, 130, 88, 129, 129, 109, 128, 109, 95,…
## $ DBP <dbl> 81, 54, 53, 71, 82, 63, 84, 92, 56, 75, 84, 58, 77, 86,…
## $ FPG <dbl> 5.80, 4.60, 5.30, 4.50, 5.54, 5.76, 5.90, 5.17, 5.06, 4…
## $ Chol <dbl> 4.36, 3.70, 5.87, 4.05, 6.69, 4.60, 6.14, 6.02, 4.73, 6…
## $ Tri <dbl> 0.86, 1.02, 1.29, 0.74, 3.49, 1.00, 2.18, 3.90, 1.02, 0…
## $ HDL <dbl> 0.90, 1.50, 1.75, 1.27, 0.91, 1.32, 1.15, 1.09, 1.15, 2…
## $ LDL <dbl> 2.43, 2.04, 3.37, 2.60, 3.64, 2.78, 3.43, 3.12, 2.82, 4…
## $ ALT <dbl> 12.0, 9.2, 10.1, 36.5, 69.3, 15.0, 26.0, 39.6, 11.5, 8.…
## $ BUN <dbl> 5.40, 3.70, 4.10, 4.38, 3.86, 4.19, 4.70, 4.48, 2.98, 5…
## $ CCR <dbl> 63.8, 70.3, 61.1, 73.4, 67.5, 59.0, 79.0, 68.3, 80.2, 6…
## $ FFPG <dbl> 5.40, 4.10, 4.85, 5.30, 5.53, 4.80, 5.48, 5.84, 5.20, 5…
## $ smoking <dbl> 3, 1, 3, 2, 3, 3, 1, 3, 3, 3, 3, 3, 1, 2, 3, 1, 3, 3, 3…
## $ drinking <dbl> 3, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 2, 3, 3, 3…
## $ family_histroy <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0…
## $ Diabetes <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0…